<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/header-common'); ?>
<section id="member-login" class="bg">
	<div class="container">
		<div class="row-fluid">
			<div class="span4 offset8" id="form-box">
				<form action="<?php if (isset($_GET["goto"])) {$goto = "?goto=".urlencode($_GET["goto"]);} else {$goto="";};echo site_url("user/login").$goto;?>" method="post" id="form-login">
					<fieldset>
						<legend>登录</legend>
						<div class="form-group">
							<h2 class="form-title">登录家园账号   <a href="http://go.redhome.cc/passport/public/user/login" style="font-size:14px;color:red">旧版入口</a></h2>
							<?php if (isset($error)) {?>
							<div class="alert">
		  						<a class="close" data-dismiss="alert">×</a>
		  						<strong>错误</strong> <?php echo $error;?>
							</div>
							<?php }?>
							<div class="control-group">
								<!--<label for="input01" class="control-label">邮箱或者学号</label>-->
								<div class="controls">
									<div class="input-prepend">
										<span class="add-on"><i class="icon-user margin-top5"></i></span>
										<input type="text" class="input-big input-h30" id="input01" name="account" value="<?php echo set_value('account');?>" check-type="required account" required-message="请输入邮箱或者密码" account-message="家园账号格式不正确" placeholder="学号/邮箱">
										<div class="help-inline"><?php echo form_error('account');?></div>
									</div>
									
								</div>
							</div>
							<div class="control-group">
								<!--<label for="input02" class="control-label">密码</label>-->
								<div class="controls">
									<div class="input-prepend">
										<span class="add-on"><i class="icon-lock margin-top5"></i></span>
										<input type="password" class="input-big input-h30" id="input02" name="password" value="<?php echo set_value('password');?>" check-type="required" required-message="请输入密码" placeholder="密码">
										<div class="help-inline"><?php echo form_error('password');?></div>
									</div>
								</div>
							</div>
							<div class="control-group">
								<div class="controls">
									<span class="inline-sp"><a href="<?php echo site_url("/user/forgetpassword");?>">忘记密码？</a></span>
									<span class="inlie-sp"><a href="<?php echo site_url("/user/forgetemail");?>">忘记邮箱？</a></span>
								</div>
							</div>
							<div class="form-actions form-actions-diy">
								<input type="hidden" name="goto" value="<?php if (isset($_GET["goto"])) echo $_GET["goto"];?>">
								<button type="submit" class="btn btn-primary btn-medium">登录</button>
							</div>
							<div class="control-group control-group-bottom">
								<p>还没有家园账号？现在<a href="<?php echo site_url("/user/register");?>" class="f18" id="toRegister"><strong>注册>></strong></a></p>
							</div>
						</div>
					</fieldset>
				</form>				
			</div>
		</div>
	</div>		
</section>
<script type="text/javascript" src="<?php echo $this->config->item('public_path');?>js/login.js"></script>
<script type="text/javascript" src="<?php echo $this->config->item('public_path');?>js/bootstrapJS/bootstrap-validation.js"></script>
<script type="text/javascript">
	$(window).load(function(){
		$('#form-login').validation();
	});
</script>
 <?php $this->load->view('common/footer'); ?>